
package vo;

import entities.Problem;

/**
 *
 * @author sbaldrich
 */
public class VOProblem {

    private Integer idProblem;
    private String problemCode;
    private String contestCode;
    private String name;
    private String description;
    private int time;
    private int difficulty;
    private int submissions;
    private int accepted;
    private Boolean visible;

    public VOProblem() {
    }

    
    
    public VOProblem(Problem p)
    {
        this.setAccepted(p.getAccepted());
        this.setContestCode(p.getContest().getContestCode());
        this.setDescription(p.getDescription());
        this.setDifficulty(p.getDifficulty());
        this.setIdProblem(p.getIdProblem());
        this.setName(p.getName());
        this.setProblemCode(p.getProblemCode());
        this.setSubmissions(p.getSubmissions());
        this.setTime(p.getTime());
        this.setVisible(p.getVisible());
    }

    public int getAccepted()
    {
        return accepted;
    }

    public void setAccepted(int accepted)
    {
        this.accepted = accepted;
    }

    public String getDescription()
    {
        return description;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public int getDifficulty()
    {
        return difficulty;
    }

    public void setDifficulty(int difficulty)
    {
        this.difficulty = difficulty;
    }

    public Integer getIdProblem()
    {
        return idProblem;
    }

    public void setIdProblem(Integer idProblem)
    {
        this.idProblem = idProblem;
    }

    public String getContestCode()
    {
        return contestCode;
    }

    public void setContestCode(String contestCode)
    {
        this.contestCode = contestCode;
    }


    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getProblemCode()
    {
        return problemCode;
    }

    public void setProblemCode(String problemCode)
    {
        this.problemCode = problemCode;
    }

    public int getSubmissions()
    {
        return submissions;
    }

    public void setSubmissions(int submissions)
    {
        this.submissions = submissions;
    }

    public int getTime()
    {
        return time;
    }

    public void setTime(int time)
    {
        this.time = time;
    }

    public Boolean getVisible()
    {
        return visible;
    }

    public void setVisible(Boolean visible)
    {
        this.visible = visible;
    }

}
